<script language=javascript>
{if $message == ''}
alert('{$_TR.default_message}');
{else}
alert('{$message}');
{/if}
window.location = "{if $url==''}index.php{else}{$url}{/if}";
</script>